<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <meta name="Generator" content="JDoc®">
    <meta name="Author" content="JDoc-jxtpro">
    <meta name="Keywords" content="JDoc">
    <meta name="Description" content="JDoc">
    <title>JDoc</title>
    <link rel="stylesheet" href="layui/css/layui.css">
    <link rel="stylesheet" href="highlight/default.min.css" />
     <script type="text/javascript" src="js/jquery.min.js" ></script>
    <script type="text/javascript" src="highlight/highlight.min.js" ></script>
   <style>
    pre {outline: 1px solid #ccc; padding: 5px; margin: 5px; }
	    .string { color: green; }
	    .number { color: darkorange; }
	    .boolean { color: blue; }
	    .null { color: magenta; }
	    .key { color: red; }
	</style>
</head>

<body>
    <blockquote class="layui-elem-quote">
        <!--地址-->
        <label style="color: green;">地址：</label> https://127.0.0.1:8080/api/jdoc/list
        <!--请求类型-->
        <hr>
        	<label style="color: green;"> 请求类型：</label>post,get
        	
        <hr>
        	<label style="color: green;">   说明：</label>
     
        <br>
        	Jdoc获取Api列表接口
        <br>
        <!--入参-->		
        <hr>
        	<label style="color: green;">   入参：</label>
        <br>
        	<table class="layui-table" lay-skin="line">
			  <thead>
			  	<th>参数名</th><th>参数类型</th><th>是否必填</th><th>描述</th>
			  </thead>
			  <tbody>
			  	<tr>
			  		<td>bigTypeId</td><td>int</td><td>必填</td><td>大类ID</td>
			  	</tr>
			  </tbody>
			</table>
        <br>
        <!--出参-->		
        <hr>
        	<label style="color: green;">   出参：</label>
        <br>
        	<table class="layui-table" lay-skin="line">
			  <thead>
			  	<th>参数名</th><th>参数类型</th><th>是否必填</th><th>描述</th>
			  </thead>
			  <tbody>
			  	<tr>
			  		<td>bigTypeId</td><td>int</td><td>必填</td><td>大类ID</td>
			  	</tr>
			  </tbody>
			</table>
        <br>	
        <!--返回示例-->		
        <hr>
        	<label style="color: green;">   返回示例：</label>
        <br>
        	<pre id="result">
			</pre>
        <br>	
        <!--测试-->	
        <hr>
        	<label style="color: green;">   测试：</label>
        	<form class="layui-form"  action="">
			  <div class="layui-form-item">
			    <label class="layui-form-label">接口地址</label>
			    <div class="layui-input-inline">
			      <input type="text" name="title" required  lay-verify="required" placeholder="请输入接口地址" autocomplete="off" class="layui-input">
			    </div>
			  </div>
			  <div class="layui-form-item">
			    <label class="layui-form-label">接口描述</label>
			    <div class="layui-input-inline">
			      <input type="password" name="password" required lay-verify="required" placeholder="请输入接口描述" autocomplete="off" class="layui-input">
			    </div>
			  </div>
			  <div class="layui-form-item">
			    <div class="layui-input-block">
			      <button class="layui-btn" lay-submit lay-filter="formDemo">测试</button>
			      <button type="reset" class="layui-btn layui-btn-primary">重置</button>
			    </div>
			  </div>
			</form>
        <br>
        <br>	
        <!--返回内容-->	
        <hr>
        	<label style="color: green;">   返回内容：</label>
        <br>
        	<pre id="result0">
			</pre>
        <br>	
        		
      
    </blockquote>
    <script type="text/javascript" src="layui/layui.js"></script>
    <script type="text/javascript">
        /**
         * 对layui进行全局配置
         */
        
        layui.config({
            base: 'js/'
        });
        
        $(document).ready(function() {
			$.getJSON("local.json",function(data){
				$('#result').html(syntaxHighlight(JSON.stringify(data, null, 2)));
				$('#result0').html(syntaxHighlight(JSON.stringify(data, null, 2)));
			});
		});
		
		
		
	  function syntaxHighlight(json) {
	    if (typeof json != 'string') {
	        json = JSON.stringify(json, undefined, 2);
	    }
	    json = json.replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>');
	    return json.replace(/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)/g, function(match) {
	        var cls = 'number';
	        if (/^"/.test(match)) {
	            if (/:$/.test(match)) {
	                cls = 'key';
	            } else {
	                cls = 'string';
	            }
	        } else if (/true|false/.test(match)) {
	            cls = 'boolean';
	        } else if (/null/.test(match)) {
	            cls = 'null';
	        }
	        return '<span class="' + cls + '">' + match + '</span>';
	    });
	}
    </script>
</body>
</html>